package com.atguigu04.example.exer2;

/**
 * ClassName: Exer2Test
 * Package: com.atguigu04.example.exer2
 * Description:
 *
 * @Author 姜
 * @Create 2023/11/16 17:31
 * @Version 1.0
 */
public class Exer2Test {
    public static void main(String[] args) {
        // 创建Exer2的对象
        Exer2 exer = new Exer2();
//        exer.method1();
//        int area = exer.method2();
//        System.out.println("面积为：" + area);
        int area1 = exer.method3(3, 8);
        System.out.println("面积为：" + area1);

    }
}
